package com.geovis.emergency.spd.entity.basic.pojo.dto;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * 基础管理模块-值班值守岗位维护保存DTO
 * </p>
 *
 * @author 王响
 * @since 2022-04-06
 */
@Getter
@Setter
@ToString(callSuper = true)
@Accessors(chain = true)
@ApiModel(value = "BasicDutyPostSaveDTO", description = "基础管理模块-值班值守岗位维护保存DTO")
public class BasicDutyPostSaveDTO implements Serializable {

    @NotBlank(message = "主键id不能为空")
    @Length(max = 64, message = "主键id最长不能超过{64}个字符")
    @ApiModelProperty(value = "主键id",required = true)
    private String id;

    @NotBlank(message = "名称不能为空")
    @Length(max = 128, message = "名称最长不能超过{128}个字符")
    @ApiModelProperty(value = "名称",required = true)
    private String name;

    @Length(max = 62, message = "父id最长不能超过{64}个字符")
    @ApiModelProperty("父id")
    private String parentId;

    @ApiModelProperty("excel取值行下表")
    private Integer excelRowIndex;

    @ApiModelProperty("excel取值列下表")
    private Integer excelCellIndex;

    @NotBlank(message = "是否值班不能为空")
    @ApiModelProperty(value = "是否值班(0-不是，1-是) 如果是值班自动根据日期生成任务，有多少个日期就有多少个excel_cell_index",required = true)
    @Length(max = 1, message = "是否值班最长不能超过{1}个字符")
    private String duty;

    @NotNull(message = "排序下表不能为空")
    @ApiModelProperty(value = "排序下表",required = true)
    private Integer idx;

}
